export const rules = {
  name: [
    { required: true, message: '请输入门票名称', trigger: 'blur' },
    { min: 1, max: 20, message: '长度在 1 到 20 个字符', trigger: 'blur' }
  ],
  projects: [
    { required: true, message: '请至少选择一个相关项目', trigger: 'change' }
  ],
  price: [
    { required: true, message: '请输入门票价格', trigger: 'blur' }
  ],
  channel: [
    { required: true, message: '请选择销售渠道', trigger: 'blur' }
  ],
  saleDate: [
    { required: true, message: '请选择销售时段', trigger: 'change' }
  ],
  circulationDay: [
    { required: true, message: '请输入日发放数量', trigger: 'change' }
  ],
  discountType: [
    { required: true, message: '请选择折扣类型', trigger: 'change' }
  ],
  ticketPic: [
    { required: true, message: '请上传票样', trigger: 'blur' }
  ],
  info: [
    { required: true, message: '请输入门票详情', trigger: 'blur' }
  ],
  purchaseNotes: [
    { required: true, message: '请输入购买须知', trigger: 'blur' }
  ],
  type: [
    { required: true, message: '请选则门票有效期', trigger: 'change' }
  ],
  timeFrameUsed: [
    { required: true, message: '请选择使用时段', trigger: 'change' }
  ],
  duration: [
    { required: true, message: '请输入使用时长', trigger: 'blur' }
  ]
}
export const applyTimesOptions = [
  {
    value: '7',
    label: '周日',
    disable: false
  },
  {
    value: '1',
    label: '周一',
    disable: false
  },
  {
    value: '2',
    label: '周二',
    disable: false
  },
  {
    value: '3',
    label: '周三',
    disable: false
  },
  {
    value: '4',
    label: '周四',
    disable: false
  },
  {
    value: '5',
    label: '周五',
    disable: false
  },
  {
    value: '6',
    label: '周六',
    disable: false
  }
]
